package com.wnx.job.modules.rms.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author by wangnaixing
 * @Description
 * @Date 2021/12/19 9:03
 */
@Data
public class ExperienceParam implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公司名称")
    @NotBlank(message = "公司名称不能为空")
    private String companyName;

    @ApiModelProperty(value = "职位名称")
    @NotBlank(message = "职位名称不能为空")
    private String postName;

    @ApiModelProperty(value = "职位类别")
    @NotBlank(message = "职位类不能为空")
    private String postType;

    @ApiModelProperty(value = "在职时间")
    @NotNull(message = "在职时间不能为空")
    private Date joinDate;

    @ApiModelProperty(value = "离职时间")
    @NotNull(message = "离职时间不能为空")
    private Date leaveDate;

    @ApiModelProperty(value = "月薪")
    @NotNull(message = "月薪不能为空")
    private String salary;

    @ApiModelProperty(value = "工作描述")
    @NotNull(message = "工作描述不能为空")
    private String description;

    @ApiModelProperty(value = "简历ID")
    private Long resumeId;
}
